package com.yic.module.mes.convert.processrouteinfo;

import java.util.*;

import com.yic.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
import com.yic.module.mes.controller.admin.processrouteinfo.vo.*;
import com.yic.module.mes.dal.dataobject.processrouteinfo.ProcessRouteInfoDO;

/**
 * 工艺路线详细配置 Convert
 *
 * @author 系统管理员
 */
@Mapper
public interface ProcessRouteInfoConvert {

    ProcessRouteInfoConvert INSTANCE = Mappers.getMapper(ProcessRouteInfoConvert.class);

    ProcessRouteInfoDO convert(ProcessRouteInfoCreateReqVO bean);

    ProcessRouteInfoDO convert(ProcessRouteInfoUpdateReqVO bean);

    ProcessRouteInfoRespVO convert(ProcessRouteInfoDO bean);

    @Mapping(source = "id", target = "routeInfoId")
    List<ProcessRouteInfoRespVO> convertList(List<ProcessRouteInfoDO> list);

    PageResult<ProcessRouteInfoRespVO> convertPage(PageResult<ProcessRouteInfoDO> page);

    List<ProcessRouteInfoExcelVO> convertList02(List<ProcessRouteInfoDO> list);

    List<ProcessRouteInfoDO> convertList03(List<ProcessRouteInfoCreateReqVO> createReqVOS);

}
